package com.sakiko.home1.controller;

import com.sakiko.home1.service.StudentService;
import com.sakiko.home1.service.impl.StudentServiceImpl;

import java.sql.SQLException;

// 组件管理配置方式之 纯 xml (无注解
public class StudentController {

    private StudentService studentService;

    public void setStudentService(StudentServiceImpl studentService) {
        this.studentService = studentService;
    }

    public void showAll() throws SQLException {
        studentService.findList();
    }
}
